import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';

@Entity()
export class User {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column({ default: '' })
  userName: string;

  @Column({ select: false })
  passWord: string;

  @Column()
  cetName: string;

  @Column({ default: '' })
  mobile: string;

  @Column()
  eMail: string;

  @Column({
    default:
      'https://pic.netbian.com/uploads/allimg/221210/234825-16706873058dc3.jpg',
  })
  headPhoto: string;

  @CreateDateColumn()
  createdTime: Date;

  @UpdateDateColumn()
  updatedTime: Date;
}

